package cn.edu.njtc.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.springframework.stereotype.Component;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Component
@TableName("tb_medical_visit")
public class MedicalVisit {
    @TableId(value = "visit_id", type = IdType.AUTO)
    private Integer visitId;
    @TableField("user_id")
    private Integer userId;
    @TableField("doctor_id")
    private Integer doctorId;
    @TableField("hospital_id")
    private Integer hospitalId;
    @TableField("visit_date")
    private LocalDate visitDate;
    @TableField("diagnosis")
    private String diagnosis;
    @TableField("prescription")
    private String prescription;
    @TableField("notes")
    private String notes;
    @TableField("created")
    private LocalDateTime created;
    @TableField("updated")
    private LocalDateTime updated;
    @TableField("deleted")
    private Boolean deleted;
}
